package cn.zhengzhou.springbootmybatis.service.impl;

import cn.zhengzhou.springbootmybatis.mapper.UserMapper;
import cn.zhengzhou.springbootmybatis.pojo.User;
import cn.zhengzhou.springbootmybatis.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;
    @Override
    public User findUser(String username, String password) {

        return userMapper.queryUser(username, password);
    }
}
